package com.zrrd.learn.chapter07字符串;

/**
 * PPT21页
 *
 * @author wrn
 * @version 1.0
 * @date 2023/7/17 16:12
 */

public class StringTest02 {

    public static void main(String[] args) {
        int j = 1234567;
        String sNumber = String.valueOf(j);
        System.out.println("j是"+sNumber.length()+"位数。");
        String s="Mary,F,1976";
        String[] sPlit = s.split(",");
        for (int i = 0; i < sPlit.length; i++) {
            System.out.println(sPlit[i]);
        }
    }

}
